package com.zm.duotai;

public class Manger extends Person{
private int monSal=8000;
private int no;

    public Manger() {
    }

    public Manger(String name, int age, char genger, long sid, int length, int weight) {
        super(name, age, genger, sid, length, weight);
        Person.setNo(Person.getNo()+1);
        this.no=Person.getNo();
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + super.getName() + '\'' +
                ", age=" + super.getAge() +
                ", genger=" + super.getGenger() +
                ", no=" + this.no +
                ", sid=" + super.getSid() +
                ", length=" + super.getLength() +
                ", weight=" + super.getWeight() +
                ", monSal=" +this.monSal +
                '}';
    }

}
